package com.lovegu.enumandannotation;

import java.lang.annotation.Retention;

/**
 * @author 老顾
 * @title: RetentionPolicy
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/24 8:57
 */
public enum RetentionPolicy {
    SOURCE,
    CLASS,
    RUNTIME
}
/**
 * @author 86153
 */
@Retention(java.lang.annotation.RetentionPolicy.SOURCE)
@interface MyAnnotation1{ }

@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@interface MyAnnotation2{ }
